<!--
 
  Copyright (c) 2010, Cristian Costantini - cristian@millemultimedia.it
  
  NotifyManager is licensed under the terms of the Open Source GPL 3.0 license. 
	
	http://www.gnu.org/licenses/gpl.html
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<notifyManager>
	
	<services>
		
		<service name="mailer" class="notifyManager.services.mailer.ServiceAdapter">
			
			<!-- config the mail server -->
			<property key="mailServer">
				<value>smtp.millemultimedia.it</value>
			</property>
			<!-- default from -->
			<property key="from">
				<value>cristian@millemultimedia.it</value>
			</property>
			<property key="to">
				<value>cristian@millemultimedia.it</value>
			</property>
			<property key="username">
				<value>*******</value>
			</property>
			<property key="password">
				<value>*********</value>
			</property>
			
		</service>
		
	</services>
	
	<events>
		
		<event name="onNewUser">
			
			<broadcasts>
				
				<before>
					
					<notice name="new.user.mail" />
					
				</before>
				
				<around>
					
				</around>
				
				<after>
					
					<notice name="new.user.mail2" />
					
				</after>
				
			</broadcasts>
			
		</event>
	
	</events>
		
	<notices>
		
		<notice name="new.user.mail" services="mailer" template="registration.cfm" type="html">
			
			<property key="from">
				<value>info@millemultimedia.it</value>
			</property>
			<property key="subject">
				<value>Nuova registrazione</value>
			</property>
			
		</notice>
		
		<notice name="new.user.mail2" services="mailer" template="registration.cfm" type="html">
			
			<property key="from">
				<value>assistenza@millemultimedia.it</value>
			</property>
			<property key="subject">
				<value>Conferma registrazione</value>
			</property>
			
		</notice>
		
	</notices>
		
</notifyManager>